import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { Button, Cell,Swipe, SwipeItem} from 'mint-ui'
import 'mint-ui/lib/style.css'
import axios from 'axios'
import { TabContainer, TabContainerItem } from 'mint-ui';
import { Loadmore } from 'mint-ui';
import { Tabbar, TabItem } from 'mint-ui';
// import asideBar from './components/asideBar';
// Vue.component(asideBar)
import goback from './components/GoBack.vue'
Vue.component('Goback',goback)
import { Field } from 'mint-ui';
import { Toast } from 'mint-ui';
Vue.component(Toast.name,Toast);
Vue.component(Field.name, Field);
Vue.component(Tabbar.name, Tabbar);
Vue.component(TabItem.name, TabItem);
Vue.component(Loadmore.name, Loadmore);
Vue.component(TabContainer.name, TabContainer);
Vue.component(TabContainerItem.name, TabContainerItem);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Button.name, Button)
Vue.component(Cell.name, Cell)
// const VConsole = require('../ceshi.js');
// Vue.use(VConsole);
import Vconsole from 'vconsole';//手机控制台
const vConsole = new Vconsole();
import fastclick from 'fastclick';//手机点击慢
// 绑定到body上面
fastclick.attach(document.body)
Vue.use(vConsole)
const $axios=axios;
Vue.prototype.$axios=$axios;
$axios.defaults.baseURL='http://127.0.0.1:4001/';//'http://192.168.88.101:4001/'
$axios.defaults.withCredentials=true
Vue.config.productionTip = false

new Vue({
  mode:history,
  router,
  store,
  render: h => h(App)
}).$mount('#app')
